from view.base import Panel, Table, Column
from model import Tag


class TagTable(Table):
    model = Tag
    display_columns = ["id", "name", "color"]


class TagPanel(Panel):
    display_name = "Tag"
    url = "/tag"
    table = TagTable